package cloud.server2.controller;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cloud.server2.service.HelloService2;

@RestController
public class HelloController {

	@Autowired
	private HelloService2 helloService2;
    @RequestMapping("/hello")
	public String hello(){
    	return helloService2.hello();
	}
    @RequestMapping("/netty")
   	public String netty(){
       	return helloService2.netty();
   	}
}
